package patterns.structures.composite.net;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Cabinet cabinet=new Cabinet("Tower");
		
		Chassis chassis=new Chassis("PC chassis");
		
		cabinet.add(chassis);
		chassis.add(new Disk("10GB"));
		
		System.out.println("newPrice"+cabinet.netPrice());
		
		System.out.println("discountPrice"+cabinet.discountPrice());

	}

}
